﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SetRoleEdit.ascx.cs" Inherits="CMS_Control_SetRoleEdit" %>

<script>
    function GetUserListEdit(name) {
        //alert(name);
        var hid = document.getElementById("listidedit").childNodes[0];
        var lb = document.getElementById("listnameedit").childNodes[0];
        hid.value = "";
        lb.innerHTML = "";
        var MyName = name.split(',');

        for (var i = 0; i < MyName.length; i++) {
            var str = MyName[i].split('?');
            lb.add(new Option(str[0], str[1]));
            hid.value += str[1] + ",";
            //lb.add(new Option(str[0],str[1]));
        }

        //lb.options[0] = new Option('a', 'a', true, true);
        //alert(lb);
        //lb.add(new Option('a', 'a'));
    }
</script>

<table>
    <tr>
        <td>
            <span id="listidedit">
                <asp:HiddenField runat="server" ID="hidIdedit" />
            </span><span id="listnameedit">
                <asp:ListBox ID="txtUserListedit" runat="server" Width="200px" SelectionMode="Multiple">
                </asp:ListBox>
            </span>
        </td>
        <td valign="top">
            <asp:Button ID="chooseedit" runat="server" Text="选择" 
                Width="40px" />
        </td>
    </tr>
</table>
